package cn.com.nes.mybatis.agent.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 工单表
 */
@TableName(value = "t_work_order_info")
@Data
public class TWorkOrderInfo implements Serializable {

    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    @TableField(value = "uuid")
    private String uuid;

    /**
     * 工单id
     */
    @TableField(value = "work_order_id")
    private String workOrderId;

    /**
     * 厂商id
     */
    @TableField(value = "company_id")
    private String companyId;

    /**
     * 厂家ID
     */
    @TableField(value = "manufacture_id")
    private String manufactureId;

    /**
     * 安装信息id
     */
    @TableField(value = "dd_id")
    private String ddId;

    /**
     * 联系人
     */
    @TableField(value = "contact")
    private String contact;

    /**
     * 联系人电话
     */
    @TableField(value = "contact_phone")
    private String contactPhone;

    /**
     * 任务类型id 1安装工单 2维修工单
     */
    @TableField(value = "work_type_id")
    private String workTypeId;

    /**
     * 工单地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 行政区划代码
     */
    @TableField(value = "xzqhdm")
    private String xzqhdm;

    /**
     * 描述
     */
    @TableField(value = "describe")
    private String describe;

    /**
     * 业务支持人员id
     */
    @TableField(value = "maintain_id")
    private String maintainId;

    /**
     * 工单状态，对应t_param表param_type = 94
     */
    @TableField(value = "status")
    private String status;

    /**
     * 处理方式id
     */
    @TableField(value = "handle_type_id")
    private String handleTypeId;

    /**
     * 处理方式描述
     */
    @TableField(value = "handle_desc")
    private String handleDesc;

    /**
     * 图片地址
     */
    @TableField(value = "images")
    private String images;

    /**
     * 工单来源:0:安装工单;1.用户保修工单;2.故障生成工单
     */
    @TableField(value = "handle_mode")
    private Integer handleMode;

    /**
     * 错误代码
     */
    @TableField(value = "erro_code")
    private String erroCode;

    /**
     * 处理id
     */
    @TableField(value = "handle_id")
    private String handleId;

    /**
     * 代理商id
     */
    @TableField(value = "agent_id")
    private String agentId;

    /**
     * 工单类型
     */
    @TableField(value = "gdlx")
    private String gdlx;

    /**
     * 工单等级
     */
    @TableField(value = "gddj")
    private String gddj;

    /**
     * 处理时限  单位(h)
     */
    @TableField(value = "clsx")
    private Integer clsx;

    /**
     * 派单时距离终点的距离
     */
    @TableField(value = "distance")
    private Integer distance;

    /**
     * 维修类型
     */
    @TableField(value = "repairType")
    private String repairtype;

    /**
     * 维修价格
     */
    @TableField(value = "repairPrice")
    private BigDecimal repairprice;

    /**
     * 起步距离
     */
    @TableField(value = "baseDistance")
    private BigDecimal basedistance;

    /**
     * 每公里价格
     */
    @TableField(value = "pricePerKM")
    private BigDecimal priceperkm;

    /**
     * 是否往返, 0否1是
     */
    @TableField(value = "roundTrip")
    private Integer roundtrip;

    /**
     * 0 未审核 1 审核通过 2审核不通过
     */
    @TableField(value = "auditStatus")
    private Integer auditstatus;

    /**
     * 审核意见
     */
    @TableField(value = "auditComments")
    private String auditcomments;

    /**
     * 审核时间
     */
    @TableField(value = "auditTime")
    private Date audittime;

    /**
     * 审核人
     */
    @TableField(value = "auditUserId")
    private Integer audituserid;

    /**
     * 计划时间
     */
    @TableField(value = "planned_start_time")
    private Date plannedStartTime;

    /**
     * 计划时间
     */
    @TableField(value = "planned_end_time")
    private Date plannedEndTime;

    /**
     * 0 未回访 1 已回访
     */
    @TableField(value = "isReturnVisit")
    private Integer isreturnvisit;

    /**
     * 故障是否修理完毕, 0-已修好, 1-未修好, 2-等待配件
     */
    @TableField(value = "repair_result")
    private Integer repairResult;

    /**
     * 服务态度, 0-非常满意, 1-满意, 2-一般, 3-恶劣
     */
    @TableField(value = "attitude")
    private Integer attitude;

    /**
     * 是否收费, 0-未收费, 1-收费
     */
    @TableField(value = "charged")
    private Integer charged;

    /**
     * 上门效率, 0-非常及时, 1-及时, 2-不及时
     */
    @TableField(value = "efficiency")
    private Integer efficiency;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 回访用户评分
     */
    @TableField(value = "rating")
    private Integer rating;

    /**
     * 工单关闭原因
     */
    @TableField(value = "closingreason")
    private String closingreason;

    /**
     * 创建者uid
     */
    @TableField(value = "createUid")
    private Long createuid;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 修改者uid
     */
    @TableField(value = "modifyUid")
    private Long modifyuid;

    /**
     * 修改时间
     */
    @TableField(value = "modifyTime")
    private Date modifytime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}